#include "pdeDoseEngine.h"

using namespace pde;

void main() {
    std::string path1("f:\\proton_dose_models\\test1\\");
	auto lut = Lut::New();
    auto plan = Plan::New();
    auto ct = VolumeShort::New();
    auto nozzle = Nozzle::New();
    auto roi = Roi::New();


    plan->from_file(path1 + "plan.bson");
    lut->from_file(path1+"lut.bson");
    ct->load_volume(path1 + "ct.mhd");
    nozzle->from_file(path1 + "nozzle.bson");
    roi->from_file(path1 + "target.mhd");

    auto dose = VolumeFloat::New();
    dose->Create(ct->get_size(), ct->get_spacing(), ct->get_origin(), 0);

    calculate_layers(nozzle, ct, lut, { roi }, plan);
}